
import { v4 as uuidv4 } from 'uuid';

import SingleSelect from '@/components/SurveyComs/Materials/SingleSelect.vue';

import TitleEditor from '@/components/SurveyComs/EditItems/TitleEditor.vue';
import DescEditor from "@/components/SurveyComs/EditItems/DescEditor.vue";
import SelectEditor from "@/components/SurveyComs/EditItems/SelectEditor.vue";
import SizeEditor from "@/components/SurveyComs/EditItems/SizeEditor.vue";
import ColorEditor from "@/components/SurveyComs/EditItems/ColorEditor.vue";
import {markRaw} from "vue";
import type { Status } from '@/types'

export default function ():Status{
  return {
    type: markRaw(SingleSelect),
    name: 'single-select',
    id: uuidv4(),
    status:{
      title: {
        id: uuidv4(),
        status: '单选题默认标题!!!',
        isShow: true,
        name: 'title-editor',
        editCom: markRaw(TitleEditor),
      },
      desc: {
        id: uuidv4(),
        status: '单选题默认描述~~~',
        isShow: true,
        name: 'desc-editor',
        editCom: markRaw(DescEditor),
      },
      options: {
        id: uuidv4(),
        status: ['默认选项1', '默认选项2'],
        currentStatus: 0,
        isShow: true,
        name: 'options-editor',
        editCom: markRaw(SelectEditor),
      },
      // position: {
      //   id: uuidv4(),
      //   currentStatus: 0,
      //   status: ['左对齐', '居中对齐'],
      //   isShow: true,
      //   name: 'position-editor',
      //   editCom: PositionEditor,
      // },
      titleColor:{
        id:uuidv4(),
        status: '#000',
        isShow:true,
        name:'color-editor',
        editCom:markRaw(ColorEditor)
      },
      titleSize: {
        id: uuidv4(),
        currentStatus: 0,
        status: ['22', '20', '18'],
        isShow: true,
        name: 'size-editor',
        editCom: markRaw(SizeEditor),
      },
      descSize: {
        id: uuidv4(),
        currentStatus: 0,
        status: ['16', '14', '12'],
        isShow: true,
        name: 'size-editor',
        editCom: markRaw(SizeEditor),
      },
      // titleWeight: {
      //   id: uuidv4(),
      //   currentStatus: 1,
      //   status: ['加粗', '正常'],
      //   isShow: true,
      //   name: 'weight-editor',
      //   editCom: WeightEditor,
      // },
      // descWeight: {
      //   id: uuidv4(),
      //   currentStatus: 1,
      //   status: ['加粗', '正常'],
      //   isShow: true,
      //   name: 'weight-editor',
      //   editCom: WeightEditor,
      // }
    }

  }
}
